package com.lagou.job.util;

import com.google.common.cache.Cache;
import com.google.common.cache.LoadingCache;

/**
 * GuavaCache工具类
 * @author yzh
 */
public final class GuaveCacheUtil {

    /**
     * 遍历GuavaCache缓存
     */
    public static void forEachCache(LoadingCache cache) {
        cache.asMap().forEach((k,v) -> {
            System.out.println("k:"+k+" - v:"+v);
        });
    }
}
